import { createApp } from 'vue'
import draggable from './drag'

const install = (app) => {
  app.directive('draggable', draggable)
}

draggable.install = install

if (typeof window !== 'undefined' && window.Vue) {
  install(createApp({}))
}

export default draggable
